package com.hxd.otc.api;


import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;

public interface IUploadApi {
    /**
     * 上传二维码
     * @param partMap
     * @param file
     * @return
     */
    @Multipart
    @POST("upload")
    Observable<String> uploadImage(@PartMap() Map<String, RequestBody> partMap, @Part MultipartBody.Part file);


    /**
     * 上传身份证
     * @param partMap
     * @param file
     * @return
     */
    @Multipart
    @POST("card/upload")
    Observable<String> uploadCardImage(@PartMap() Map<String, RequestBody> partMap, @Part MultipartBody.Part file);
}
